package com.ktjiaoyu.crm;

import com.ktjiaoyu.crm.mapper.UserMapper;
import com.ktjiaoyu.crm.repository.User;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest
public class MyBatisTester {

    @Resource
    private UserMapper userMapper;

    @Test
    public void testInsertUser(){
       int result =  userMapper.insert(new User("test1111","123",2L,1));
       if(result>=1) System.out.println("新增成功！");
    }
}
